home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-1.iso
/
games
/
nerak2.zip
/
FAIRY.SCR
< prev
next >
Wrap
Text File
|
1994-06-30
|
4KB
|
120 lines
!
! Default fairy script..
!
! Karen Scites 1994
!
! - This script has no voices. For an example of voices, look at
! MERCHANT.SCR and HEALER.SCR
!
! Her TEXT block #50 shows the following keywords:
!
! 0 : Hello Hi! What are you up to? Going on a trip?
! 1 : Default Have you ever danced in the forest at midnight?
! 2 : Weapons In the chest over there.. Let's go do something..
! 3 : Join What are we waiting for.. Let's get the weapons..
! 4 : Chest I keep the weapons in the chest. We could get them!
! 5 : Get If we go on a quest, we should get them.
! 6 : Quest The King and Queen are worried about the Princess.
! 7 : Kiss It's against nature for fairies to kiss humans!
! 8 : Date Would you like to dance in the forest at midnight?
! 9 : PrincessShe's missing. They need a real hero to save her!
! 10 : Trip You might want a little help on your trip.
! 11 : AdventurIt's a good time of the year to go look for adventure!
! 12 : Dance Sorry, just a fairy joke.
! 13 : Forest Have you ever danced in the forest at midnight?
! 14 : Help I can sprinkle you with fairy dust to help protect you.
! 15 : Fairy I help adventurers by giving them some protection.
!
!------------------------------------------------------------------------!
:@TALK ! Talk to the character !
!------------------------------------------------------------------------!
if player.hp = 0 then
writeln( player.name, " is dead!" );
STOP;
endif;
if npc.picture >= 0 then
viewpcx(npc);
endif;
! First, say hello.. !
if NPC.V0 > 0 then
writeln( "Greetings ", player.name, ". What brings you back?" );
else
writeln( "Greetings. I am ", npc.name, ". How may I help you?" );
endif;
! Now, set some variables..
NPC.V0 = 1; ! From know on, remember we've been here
:LOOP
L3 = getstr("Name","Job","Join","Sprinkle","Bye");
if L3 = -1 then
writeln( "Ok." );
goto XSTOP;
endif;
! First, see if the keyword typed is in the character's text block !
if dotext( S0 ) then
if L3 = 3 goto XSTOP;
goto LOOP;
endif;
! It didn't, so try the predefined ones..
on L3 goto CNAME, CJOB, CJOIN, CSPRINKLE, CSTOP;
! Nope, try a 'DEFAULT' line
if not dotext( "DEFAULT" ) then
writeln( "I'm not able to disclose that information at this time." );
endif;
goto LOOP;
:CNAME
writeln( "My name is ", NPC.name, "." );
GOTO LOOP;
:CJOB
writeln( "I am a ", npc.type );
GOTO LOOP;
:CJOIN
writeln( "I can't leave. My job here is too important." );
writeln( "You are welcome to come back again as often as you want though." );
GOTO LOOP;
:CSPRINKLE
writeln( "I'm always happy to help a noble adventurer." );
writeln( "But remember, this protection only lasts one day." );
!Do the whole party..
foreach player do
inc(player.dex);
inc(player.iq);
inc(player.str);
inc(player.aim);
inc(player.spd);
inc(player.ac);
inc(player.pwr);
inc(player.exp);
endfor;
GOTO LOOP;
:CSTOP
writeln( "May good fortune always smile on you." );
goto XSTOP;
! Feel free to expand on this list.. !
!-----------------------------------------------------------------!
! All STOPs now lead here so the screen can be restored if needed !
!-----------------------------------------------------------------!
:XSTOP
if npc.picture >= 0 then
paint(window); ! Assumes the picture fits in the window !
endif;
STOP;